﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_Contact : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        bool gt;
        if (gt_nam.Checked)
        {
            gt = true;
        }
        else gt = false;
        DTO_Contactcs obj = new DTO_Contactcs(txtFullname.Text,gt,txtAddress.Text,txtTell.Text,txtEmail.Text, txtDetail.Text,DateTime.Now);
        
        BUS_Contact contact = new BUS_Contact();
        contact.GuiContact(obj);
        Response.Write("<script language='JavaScript'> confirm('Register sucessfully !!'); </script>");
    }
}